package com.tools.pojo.workflow.bo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PathNode {

    private String nodeCode;

    private String nodeName;

    private String nodeType;

    private String startTime;

    private String endTime;

    private Boolean success;

    private String message;

    private Object result;

    public PathNode() {
        // 默认构造函数
    }


    public PathNode(String nodeCode, String nodeName, String nodeType) {
        this.nodeCode = nodeCode;
        this.nodeName = nodeName;
        this.nodeType = nodeType;
        this.startTime = LocalDateTime.now().toString();
    }

}
